package com.gpy.hospital.cms.service;

import com.github.pagehelper.PageInfo;
import com.gpy.hospital.cms.pojo.User;
import com.gpy.hospital.common.ServerResponse;

import javax.servlet.http.HttpServletRequest;

public interface IUserService {
    PageInfo<User> getByEmail(String userEmail, Integer pageNum, Integer pageSize);

    User getById(Integer userId);

    ServerResponse updateUser(User user);

    ServerResponse deleteById(Integer userId);

    ServerResponse login(HttpServletRequest request, User user);

    ServerResponse register(User user);

    ServerResponse adminLogin(HttpServletRequest request,User user);

    ServerResponse addUser(User user);
}
